package ioperation;

import Book.BookShelf;
import Book.Book;

public class ShowOperation implements IOperation{
    public void work(BookShelf bookShelf){
        System.out.println("显示图书中....");
        int count= bookShelf.getNum();
        for (int i = 0; i < count; i++) {
            Book book=bookShelf.getBook(i);
            System.out.println(book);
        }
    }
}
